package cn.iocoder.yudao.module.reservation.controller.admin.rechargeorder.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 充值订单 Response VO")
@Data
@ExcelIgnoreUnannotated
public class RechargeOrderRespVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "2744")
    @ExcelProperty("主键")
    private Long id;

    @Schema(description = "会员id", example = "14029")
    @ExcelProperty("会员id")
    private Long memberId;

    @Schema(description = "活动id", example = "22396")
    @ExcelProperty("活动id")
    private Long activityId;

    @Schema(description = "充值价格")
    @ExcelProperty("充值价格")
    private BigDecimal amount;

    @Schema(description = "赠送金额")
    @ExcelProperty("赠送金额")
    private BigDecimal giftAmount;

    @Schema(description = "支付方式")
    @ExcelProperty(value = "支付方式", converter = DictConvert.class)
    @DictFormat("mrs_payment_method") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer paymentMethod;

    @Schema(description = "完成时间")
    @ExcelProperty("完成时间")
    private LocalDateTime completeTime;

    @Schema(description = "用户ip地址")
    @ExcelProperty("用户ip地址")
    private String ipAddress;

    @Schema(description = "服务状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty(value = "服务状态", converter = DictConvert.class)
    @DictFormat("mrs_payment_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer status;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}